From: Jan Djärv Date: Tue, 3 Apr 2007 07:34:26 +0000 (+0000) Subject: (xg_update_menubar): Call g_list_next after moving X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~1170 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=cbbdacae1a02bb96668f58a502f7b1dde932e467;p=emacs.git (xg_update_menubar): Call g_list_next after moving menu bar item. --- diff --git a/src/gtkutil.c b/src/gtkutil.c index fa8e91546ce..8dfcf84f0f2 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -2506,6 +2506,7 @@ xg_update_menubar (menubar, f, list, iter, pos, val, g_list_free (*list); *list = iter = gtk_container_get_children (GTK_CONTAINER (menubar)); while (nr-- > 0) iter = g_list_next (iter); + if (iter) iter = g_list_next (iter); val = val->next; ++pos; }